<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
	<link href="<?=AppContext::getBaseURL()?>/share/css/commons.css" rel="stylesheet" type="text/css" />
    <link href="<?=AppContext::getBaseURL()?>/share/css/base.css" rel="stylesheet" type="text/css" />
    <link href="<?=AppContext::getBaseURL()?>/share/css/form.css" rel="stylesheet" type="text/css" />
    <?=$this->headLink() ?>
    
    <script src="<?=AppContext::getBaseURL()?>/share/js/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script src="<?=AppContext::getBaseURL()?>/share/js/app.js" type="text/javascript"></script>
    <script src="<?=AppContext::getBaseURL()?>/share/js/forms.js" type="text/javascript"></script>
    <?=$this->headScript() ?>
    
    <script type="text/javascript">
	App.controller = '<?=AppContext::getControllerName()?>';
	App.method = '<?=AppContext::getActionName()?>';
    
    jQuery(document).ready(function() {
        App.run();
    });
    </script>
    <title><?=AppContext::getConfiguration('title')?></title>
</head>
<body>
<div class="b-container c-table">

<div class="b-header row">
	<div class="cell">
		<div class="b-header-topbar">
			<div class="c-table">
				<div class="row">
					<div class="cell"></div>
					<div class="cell">
		
<div class="b-langbar">
	<ul>
		<li>
			<a href="<?=AppContext::getBaseURL()?>/home/lang/ro" 
				title="<?=Translator::get('langbar_ico_title_ro')?>">
				<img src="<?=AppContext::getBaseURL()?>/share/images/flags/ro.png" />
			</a>
		</li>
		<li>
			<a href="<?=AppContext::getBaseURL()?>/home/lang/ru"
				title="<?=Translator::get('langbar_ico_title_ru')?>">
				<img src="<?=AppContext::getBaseURL()?>/share/images/flags/ru.png" />
			</a>
		</li>
		<li>
			<a href="<?=AppContext::getBaseURL()?>/home/lang/en"
				title="<?=Translator::get('langbar_ico_title_en')?>">
				<img src="<?=AppContext::getBaseURL()?>/images/flags/gb.png" />
			</a>
		</li>
	</ul>	
	<div style="clear:both"></div>		
</div>

					</div>
				</div>
			</div>
		</div>
		<div class="b-header-middle">
			<div class="c-table">
				<div class="row">
					<div class="cell" style="vertical-align: middle">
<div class="b-logo">
	<a href="<?=AppContext::getBaseURL()?>">
		<img src="<?=AppContext::getBaseURL()?>/share/images/logo_ro.png" />
	</a>
</div>			
					</div>
					<div class="cell">
<div class="b-usermenu">
	<ul>
		<?php if (SecurityContext::instance()->hasRole(SecurityContext::DEFAULT_VISITOR_ROLE)) : ?>
		<li><a href="<?=AppContext::getBaseURL()?>/users/logout">Log out</a></li>
		<li><a href="<?=AppContext::getBaseURL()?>/users/logout">My account</a></li>
		<li><a href="<?=AppContext::getBaseURL()?>/users/logout">My gifts</a></li>
		<li><a href="<?=AppContext::getBaseURL()?>/products/add">Add gift</a></li>
		<?php else : ?>
		<li><a href="<?=AppContext::getBaseURL()?>/users/signup">Sign up</a></li>
		<li><a href="<?=AppContext::getBaseURL()?>/users/login">Log in</a></li>
		<?php endif ?>
	</ul>
	<div style="clear:both"></div>
</div>
<div class="b-search">
	<form action="#">
		<div class="b-search-input-lm"></div>
		<input type="text" name="q" />
		<input type="submit" value="Search" />
		<div class="b-search-input-rm"></div>
		<div style="clear:both"></div>
	</form>
	<div style="clear:both"></div>
</div>		
			
					</div>
				</div>
			</div>
		</div>
		<div class="b-menu">
			<div class="b-menu-container">
				<ul>
					<li><a href="<?=AppContext::getBaseURL()?>/products/viewall/latest">Latest added gifts</a></li>
					<li>::</li>
					<li><a href="<?=AppContext::getBaseURL()?>/products/viewall/random">Random gifts</a></li>
				</ul>
				<div style="clear:both"></div>
			</div>
		</div>
	</div>
</div>
<div class="b-body row">
	<div class="cell">
		<div class="b-body-container c-table">
			<div class="row">
				<div class="cell l-cell">
					<div class="b-mainbox">
						<div class="header">
							<div class="hlc"><div></div></div>
							<div class="hm"><div></div></div>
							<div class="hrc"><div></div></div>
						</div>
						<div class="body">
							<div class="blm"></div>
							<div class="bc">
								<?=$this->layout()->content?>
							</div>
							<div class="brm"></div>
						</div>
						<div class="footer">
							<div class="flc"><div></div></div>
							<div class="fm"><div></div></div>
							<div class="frc"><div></div></div>
						</div>
					</div>
				</div>
				<div class="cell r-cell">
					
				</div>
			</div>
		</div>
	</div>
</div>
<div class="b-footer">
	<div class="cell">
		<div class="c-table">
		<!-- 
			<div class="row">
				
			</div>
			 -->
			<div class="row">
				<div class="b-footer-links cell">
					<ul>
						<li><a href="">Terms &amp; Conditions</a></li>
						<li>|</li>
						<li><a href="">Contact Us</a></li>
						<li>|</li>
						<li><a href="">About Us</a></li>
					</ul>
					<div style="clear:both"></div>
				</div>
			</div>
			<div class="b-footer-copyright row">
				<div class="cell">Copyright &copy; 2011 - 2012 by Daruiesc Team</div>
			</div>
		</div>
	</div>
	
	<div class="b-footer-bestexp">
		<div class="l-margin"></div>
		<div class="text">
			<h1>Designed for</h1>
		</div>
		<div class="icos">
			<a href="http://www.mozilla.org/en-US/firefox/new/" target="_blank">
				<img src="<?=AppContext::getBaseURL()?>/share/images/ff-logo.png" />
			</a>
			<a href="https://www.google.com/chrome" target="_blank">
				<img src="<?=AppContext::getBaseURL()?>/share/images/ch-logo.png" />
			</a>
		</div>
		<div class="r-margin"></div>
		<div style="clear:both"></div>
	</div>
	
</div>
</div>

</body>
</html>